import http from "@/utils/http";

import {CLIENT,YNGP} from '@/common/const'

/**
 * 客户端股池列表（驭龙降龙+选股器）
 * @param {Object} option
 * @param {Number} option.productId - 用户ID
 * @param {Number, Optional} option.limit - 页码
 * @param {Number, Optional} option.cId - 每页数量
 * @param {String} option.clientCentralToken - 每页数量
 *
 * @return {Promise} Array
 */
export function getStrategyStockPoolList(option) {
  const url = `${CLIENT}/client/getStrategyStockPoolList.htm`;
  const params = {
    cId: "",
    ...option,
  };
  return http.get( url,  params );
}

/**
 * POST请求示例
 * @param {Number} id - 参数注释
 * @return {Promise} Object
 */
export function postRequest(option) {
  const url = `${CLIENT}/some/url`;
  const params = {
    currentPage: 1,
    pageSize: 10,
    ...option,
  };
  return http.post(url, params);
  
}
